<?php
get_header();
$active_option = get_option('azio_style_option', 'option_not_set');
$permalink = get_permalink();
$title = get_the_title();
$date = get_the_date('d/m/Y');
$term_list_name = wp_get_post_terms(get_the_ID(), 'category', array("fields" => "names"));
?>
    <div id="main-container" class="<?php echo $active_option->main_container; ?>">
        <div class="page-top-leader omega<?php echo ' '.$active_option->page_top_leader; ?>">
            <div class="container_12 relatived clearfix">
                <h1 class="page-title"><?php echo $title; ?></h1>
                <?php
                if (function_exists('yoast_breadcrumb')) {
                    yoast_breadcrumb('<div class="breadcrumb">', '</div>');
                }
                ?>
            </div>
        </div>
        <!-- .page-top-leader -->
        <div class="container_12">
            <?php get_sidebar('product') ?>
            <!-- end #column-left -->

            <div class="aside-container grid_9 omega">
                <div class="blog-post clearfix">
                    <div class="grid_9 meta clearfix omega"> <span class="posted-in"><i class="icomoon" aria-hidden="true" data-icon="&#xe029;"></i> Chuyên mục:
                            <?php
                            echo implode(",", $term_list_name);
                            ?>
                    </span>
                        <span class="date"><i class="icomoon" aria-hidden="true" data-icon="&#xe018;"></i><span class="day"><?php echo $date; ?></span></span>
                    </div>
                    <article class="grid_9 omega">
                        <div class="content">
                            <?php the_content() ?>
                        </div>
                    </article>
                    <div class="share-in clearfix">
                        <div class="fb-like" data-href="<?php echo $permalink; ?>" data-width="150" data-layout="box_count" data-show-faces="false" data-send="false"></div>
                        &nbsp;
                        <div class="g-plusone" data-size="tall" data-href="<?php echo $permalink; ?>"></div>
                        &nbsp;
                        <a href="https://twitter.com/share" class="twitter-share-button" data-url="<?php echo $permalink; ?>" data-via="your_screen_name" data-lang="en" data-related="anywhereTheJavascriptAPI" data-count="vertical">Tweet</a>
                    </div>
                    <div class="comments grid_9 omega">
                        <div class="fb-comments" data-href="<?php the_permalink() ?>"></div>
                    </div>

                </div>
                <!-- .blog-post -->
            </div>
            <!-- end .aside-container -->
        </div>
        <!-- end .container_12 -->

        <?php get_template_part('block', 'baseinfo') ?>
        <!-- end .base-info -->
    </div>
    <!-- end #main-container -->

<?php get_footer(); ?>